package com.news.news.dao;

import com.news.news.modle.Admin;
import com.news.news.modle.Menu;
import com.news.news.modle.Role;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * Created by 罗铠威 on 2023/8/29 16:22
 * type:
 */
//@Mapper
public interface RoleDao {

    ArrayList<Role> roleList(Role role);

    ArrayList<Menu> findMenus();

    void saveRole(Role role);

    void addRoleMenu(@Param("roleid") Integer id,@Param("menuid") Integer menuid);

    Role findRoleById(Integer id);


    void deleteRoleMenu(Integer id);

    void updateRole(Role role);

    void deleteRole(Integer id);

}
